/*
 * @Author: HeAo
 * @Date: 2021-09-27 11:18:04
 * @LastEditTime: 2021-09-27 11:26:06
 * @LastEditors: HeAo
 * @Description:
 * @FilePath: \web2103-2105\web2103code\3-1-ES6\day03\6-Map集合.js
 * 别乱动！
 */
let obj1 = {
  name: 'zhangsan',
  age: 12,
  gender: 'male'
}
let map = new Map(Object.entries(obj1))
map.set(true, 0)
map.set({ a: 1, b: 2 }, ['tom', 'vicky'])
console.log(map.size);
console.log(map.get(true));
console.log(map);
map.forEach((value, key) => {
  console.log(value, key);
})


